Skip to main content

Forward Mail

AutomatR.Office365.Activities.ForwardMail

The "Forward Mail" activity in AutomatR is part of the Office 365 activities package, allowing automation processes to utilize the Microsoft Office message API to forward an email. This activity streamlines the process of forwarding emails with additional options, such as specifying recipients, body type, comments, and attachments.

Properties

NameDescription
Input
AttachmentsSpecifies the full file path of the file(s) you wish to attach from your local drive. Use a List<String> variable for inclusion in the email. Ensure that the file paths are correct and valid.
Body TypeSelect a content type from the dropdown menu to specify the desired format (text or HTML) for the body of the forwarded email.
CommentProvide the desired message body that you would like to include while forwarding the email. String variables containing the comment.
Mail MessageSpecifies the mail message variable representing the email to be forwarded. This field only supports a mail message variable. Ensure the variable contains the necessary information for identification.
ToProvide the additional email address that you would like to include when forwarding the email. String variables containing the email addresses.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Forward Mail" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs the result of the "Forward Mail" operation, indicating whether the forwarding was successful or encountered errors. Variables of relevant types (e.g., Boolean variables) to store the operation result.

How to use:

  1. Drag and drop the "Forward Mail" activity onto the workflow.
  2. Configure the properties by specifying the delay duration, mail message variable representing the email, recipients, body type, comment, and attachments.
  3. Execute the workflow to forward the specified email with additional options.

Example: Consider an example where the "Forward Mail" activity is used to forward an email with additional options:

Forward Mail:
Display Name: "Forward Invoice Email"
Mail Message: emailMessageVariable
To: "john.doe@example.com"
Body Type: Text
Comment: "Please review the attached invoice."
Attachments: attachmentPathsList
Result: isForwardSuccessful

In this example, the activity forwards the email specified by the "emailMessageVariable" to the email address "john.doe@example.com" with a text body type and a comment. Additionally, attachments from the list specified in the "attachmentPathsList" variable are included. The result of the operation (success or failure) is stored in the Boolean variable "isForwardSuccessful" for further handling in the workflow.